Refactor generate-wiki-docs.py to derive config from project files instead of hardcoding#265
Merged
mercyblitz merged 3 commits intomainfrom Mar 24, 2026
Merged
Conversation
… config reads - MODULES: dynamically discovered via filesystem (subdirs with src/main/java) - JAVA_VERSIONS: parsed from .github/workflows/maven-build.yml matrix.java - PROJECT_VERSION: parsed from root pom.xml revision property - ARTIFACT_ID: parsed from root pom.xml artifactId (replaces hardcoded "microsphere-java") - PROJECT_TITLE: parsed from README.md title (replaces hardcoded "Microsphere Java") Co-authored-by: mercyblitz <533114+mercyblitz@users.noreply.github.com> Agent-Logs-Url: https://github.com/microsphere-projects/microsphere-java/sessions/67ece2a6-fae8-47b1-b76a-903ba01b4dbb
Co-authored-by: mercyblitz <533114+mercyblitz@users.noreply.github.com> Agent-Logs-Url: https://github.com/microsphere-projects/microsphere-java/sessions/67ece2a6-fae8-47b1-b76a-903ba01b4dbb
Co-authored-by: mercyblitz <533114+mercyblitz@users.noreply.github.com> Agent-Logs-Url: https://github.com/microsphere-projects/microsphere-java/sessions/67ece2a6-fae8-47b1-b76a-903ba01b4dbb
Copilot created this pull request from a session on behalf of
mercyblitz
March 24, 2026 08:34
View session
|
Codecov Report✅ All modified and coverable lines are covered by tests. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



All key configuration values in the wiki generator script were hardcoded and out of sync with the project (e.g.
PROJECT_VERSIONwas0.1.10-SNAPSHOT, actual is0.2.1-SNAPSHOT). Refactored to read them dynamically from source-of-truth files.Dynamic config readers
MODULES— discovered via filesystem by listing subdirs containingsrc/main/java, replacing a hardcoded 6-element listJAVA_VERSIONS— parsed frommatrix.javain.github/workflows/maven-build.ymlPROJECT_VERSION— parsed from<revision>property in rootpom.xmlARTIFACT_ID(new) — parsed from rootpom.xml, replaces all hardcoded"microsphere-java"in URLs, Maven snippets, and generated textPROJECT_TITLE(new) — parsed from# headinginREADME.md, replaces all hardcoded"Microsphere Java"in generated pagesEach reader emits a warning to stderr if parsing fails. No new dependencies — all parsing uses
reandosfrom stdlib.Housekeeping
__pycache__/to.gitignore